
// 表单校验规则由 schema2code 生成，不建议直接修改校验规则，而建议通过 schema2code 生成, 详情: https://uniapp.dcloud.net.cn/uniCloud/schema



const validator = {
  "hotel_id": {
    "rules": [
      {
        "format": "string"
      }
    ]
  },
  "order_id": {
    "rules": [
      {
        "format": "string"
      }
    ]
  },
  "user_id": {
    "rules": [
      {
        "required": true
      },
      {
        "format": "string"
      }
    ]
  },
  "uid": {
    "rules": [
      {
        "format": "string"
      }
    ]
  },
  "start": {
    "rules": [
      {
        "format": "number"
      }
    ],
    "defaultValue": 3,
    "label": "星级"
  },
  "isPublic": {
    "rules": [
      {
        "format": "boolean"
      }
    ],
    "defaultValue": false,
    "label": "匿名评论"
  },
  "content": {
    "rules": [
      {
        "required": true
      },
      {
        "format": "string"
      }
    ],
    "label": "评论内容"
  },
  "create_date": {
    "rules": [
      {
        "format": "timestamp"
      }
    ],
    "defaultValue": {
      "$env": "now"
    }
  }
}

const enumConverter = {}

export { validator, enumConverter }
